﻿using DXApplicationTangche.UC.客户CRM.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.坚山上海.坚山上海新
{
    public partial class Form受托加工地址一览 : DevExpress.XtraEditors.XtraForm
    {
        public Form受托加工地址一览()
        {
            InitializeComponent();
            this.gridControl受托加工地址.DataSource = CRM客户Service.getOutSourcingAll();
        }

        private void simpleButton添加收货地址_Click(object sender, EventArgs e)
        {
            new Form受托加工地址保存().ShowDialog();
            this.刷新();
        }
        private void 刷新()
        {
            List<OutSourcingReceiverAddressDTO> outSourcingReceiverAddressDTOs = CRM客户Service.getOutSourcingAll();
            this.gridControl受托加工地址.DataSource = outSourcingReceiverAddressDTOs;
            this.gridView受托加工地址.RefreshData();
        }
    }
}
